package com.dynamo.transport.network.practise.channel;

/**
 * @author duanyimiao
 * @create 2018-12-19 12:00 PM
 * @description
 **/
public class DefaultMessageEvent implements MessageEvent {

    private ChannelPipeline pipeline;
    private Channel channel;
    private Object msg;

    public DefaultMessageEvent(ChannelPipeline pipeline,Channel channel,Object msg){

        this.pipeline = pipeline;
        this.channel = channel;
        this.msg = msg;
    }

    @Override
    public ChannelPipeline getPipelien() {
        return pipeline;
    }

    @Override
    public Channel getChannel() {
        return channel;
    }

    @Override
    public ChannelFuture future() {
        return null;
    }

    @Override
    public Object getMsg() {
        return msg;
    }
}
